package com.lgy.rabbit.mq;

import lombok.RequiredArgsConstructor;

@RequiredArgsConstructor
public enum DemoRabbit implements RabbitParent {
    /**
     * 短信发送
     */
    DEMO_SEND("sms.send.demo");

    /**
     * 交换机名称
     */
    private static final String EXCHANGE_NAME = "xr.demo.direct";

    /**
     * 路由键
     */
    private final String routeKey;

    @Override
    public String exchange() {
        return EXCHANGE_NAME;
    }

    @Override
    public String routingKey() {
        return routeKey;
    }
}
